package com.csdj.questions.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 回答表
 * </p>
 *
 * @author 刘宇
 * @since 2022-03-08
 */
public class Answer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表Id
     */
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    /**
     * 视频路径
     */
    private String movingPath;

    /**
     * 回答Id
     */
    private String answerId;

    /**
     * 回答者Id
     */
    private Integer userId;

    /**
     * 话题Id（用于这个人在该领域下有多少个回答）
     */
    private String topicId;

    /**
     * 问题Id
     */
    private String quesId;

    /**
     * 内容
     */
    private String snswerContent;

    /**
     * 照片
     */
    private String photo;

    /**
     * 匿名（1是/0否）
     */
    private String anonymity;

    /**
     * 评论次数
     */
    private Integer commentNumb;

    /**
     * 举报次数
     */
    private Integer reportNumb;

    /**
     * 评论者id
     */
    private Integer commentId;

    /**
     * 回答时间
     */
    private LocalDate createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getMovingPath() {
        return movingPath;
    }

    public void setMovingPath(String movingPath) {
        this.movingPath = movingPath;
    }
    public String getAnswerId() {
        return answerId;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }
    public String getQuesId() {
        return quesId;
    }

    public void setQuesId(String quesId) {
        this.quesId = quesId;
    }
    public String getSnswerContent() {
        return snswerContent;
    }

    public void setSnswerContent(String snswerContent) {
        this.snswerContent = snswerContent;
    }
    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
    public String getAnonymity() {
        return anonymity;
    }

    public void setAnonymity(String anonymity) {
        this.anonymity = anonymity;
    }
    public Integer getCommentNumb() {
        return commentNumb;
    }

    public void setCommentNumb(Integer commentNumb) {
        this.commentNumb = commentNumb;
    }
    public Integer getReportNumb() {
        return reportNumb;
    }

    public void setReportNumb(Integer reportNumb) {
        this.reportNumb = reportNumb;
    }
    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }
    public LocalDate getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Answer{" +
            "id=" + id +
            ", movingPath=" + movingPath +
            ", answerId=" + answerId +
            ", userId=" + userId +
            ", topicId=" + topicId +
            ", quesId=" + quesId +
            ", snswerContent=" + snswerContent +
            ", photo=" + photo +
            ", anonymity=" + anonymity +
            ", commentNumb=" + commentNumb +
            ", reportNumb=" + reportNumb +
            ", commentId=" + commentId +
            ", createTime=" + createTime +
        "}";
    }
}
